<include file="../header" />
<body class="J_scroll_fixed">
<script>


</script>
<form class="well form-search" method="post" style="float:left" action="{:U('Payment/index')}">
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
            <!--状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：{:getEnumSelectWidget($statusEnum, "fo#status", $status, 1)}-->
            分类：
            <select name="pm#type-eq" style="width: 100px">
                <option value=""></option>
                <option value="">全部</option>
                <option value="wangjing">望京医院</option>
            </select>
            订单编号：<input type="text" style="width: 150px" name="pay#out_trade_no-like" value="{$out_trade_no}" />
            付款人姓名：<input type="text" style="width: 150px" name="pm#name-like" value="{$name}" />
            微信昵称：<input type="text" style="width: 150px" name="cus#nickname-like" value="{$nickname}" />
            <br>订单开始时间：<input type="text" value="{$begin_time}" class="date J_date" name="pm#pay_time-egt" />
            订单截止时间：<input type="text" value="{$end_time}" class="date J_date" name="pm#pay_time-elt" />
            <button class="btn btn-primary" type="submit">搜索</button>
            <a class="btn" href="{:U('Payment/index')}">重置</a>
        </span>
        </div>
    </div>
</form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>订单编号</th>
            <th>金额</th>
            <th>付款时间</th>
            <th>付款人信息</th>
            <th>需要发票</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="paymentList" item="vo">
            <tr>
                <php>
                    if($vo["type"] == "wangjing"){
                        $type = "望京医院";
                    }else{
                        $type = "";
                    }
                </php>
                <td style="width:100px;">{$vo.out_trade_no}<br>({$vo.payment_id})<a style="color: #45A1DE">{$type}</a></td>
                <td style="width:50px;"><a style="color: #ed7667">{$vo.amount}</a> 元</td>
                <td style="width:80px;">{$vo.pay_time}</td>
                <td style="width:150px;">付款姓名：<a style="color: #1dccaa">{$vo.name}</a><br>微信昵称：{$vo.nickname}</td>
                <!--<td style="width:50px;"><img src="{$vo.headimgurl}"/></td>-->
                <td style="width:300px;">
                    {:getEnumString($defaultEnum, $vo['need_invoice'])}
                    <if condition="$vo['need_invoice'] eq 1">
                        : <a style="color: #45a1de">{$vo.invoice_name}</a><br>税号 : <a style="color: #45a1de">{$vo.invoice_number}</a>
                    </if>
                    <if condition="$vo['need_invoice'] eq 2">
                        : <a style="color: #45a1de">{$vo.invoice_name}</a>
                    </if>
                    <if condition="$vo['need_invoice'] gt 0">
                        &nbsp;&nbsp;&nbsp;电话：<a style="color: #45a1de">{$vo.receive_contact}</a>
                    </if>
                </td>
                <td><a style="font-weight: bold; color: #ffa451">{$vo.payment_content}</a></td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>